package com.xayy.mgt.enums;

import lombok.Getter;

/**
 * 卫星激光头
 */
@Getter
public enum SateJGTEnum {

    JGT1(1, "ZX3477","ZX3108"),
    JGT2(2, "ZX4477","ZX4108"),
    JGT3(3, "ZX2477","ZX2108"),
    JGT4(4, "ZX5477","ZX5108"),
    KDLL(5, "ZX6355","ZX5"),
    ;

    SateJGTEnum(Integer number, String code,String statusCode) {
        this.number = number;
        this.code = code;
        this.statusCode = statusCode;
    }

    private final Integer number;

    private final String code;

    private final String statusCode;


    public static String getCode(Integer number) {
        for (SateJGTEnum value : values()) {
            if (value.number.equals(number))
                return value.code;
        }
        return "";
    }
    public static String getStatusCode(Integer number) {
        for (SateJGTEnum value : values()) {
            if (value.number.equals(number))
                return value.statusCode;
        }
        return "";
    }



}
